package com.example.mybiadushoujiweishi.activity.acivitys.fragments;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;


import com.example.mybiadushoujiweishi.R;
import com.example.mybiadushoujiweishi.activity.acivitys.OnekeyhelpActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * Created by Administrator on 2017/5/26 0026.
 */

public class Onkeyhelpstart_fragment extends Fragmentbase {
    @BindView(R.id.startonekeyhelp)
    Button startonekeyhelp;
    Unbinder unbinder;

    @Override
    public void initView() {


    }

    @Override
    public void initData() {

    }

    @Override
    public int getXml() {
        return R.layout.onekeyhelpfragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        unbinder = ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick(R.id.startonekeyhelp)
    public void onViewClicked() {
        OnekeyhelpActivity activity = (OnekeyhelpActivity) getActivity();


        activity.changeFragment(new Onkeyhelphome_fragment(), "home");


    }
}
